using System.Drawing;

namespace OpenComposite.Base.Designer
{
	public class Label : Symbol
	{
		#region Initialization
		public Label()
		{
			init();
		}
		private void init()
		{
			this.BeginUpdate();

			//this.Name = "label" + GetCount(typeof(Label));
			this.Text = "Label";

			this.Border = BorderType.None;

			this.BackColor = Color.Transparent;

			this.NameTextBox.AutoSize = false;
			this.Size = new Size(100, 30);
			this.NameTextBox.Anchor = System.Windows.Forms.AnchorStyles.Bottom |
									  System.Windows.Forms.AnchorStyles.Left |
									  System.Windows.Forms.AnchorStyles.Right |
									  System.Windows.Forms.AnchorStyles.Top;
			this.NameTextBox.MouseClick += new System.Windows.Forms.MouseEventHandler(NameTextBox_MouseClick);

			this.EndUpdate();
		}

		private void NameTextBox_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			this.Select();
		}
		#endregion
	}
}
